Skip to content

Sweep: Add a new feature to my Dungeons and Dragons character generator that displays an icon for each class type (e.g. rogue, warrior, etc) (✓ Sandbox Passed)#3

Open
sweep-ai-deprecated[bot] wants to merge 2 commits intomasterfrom
sweep/add_a_new_feature_to_my_dungeons_and_dra
Open

Sweep: Add a new feature to my Dungeons and Dragons character generator that displays an icon for each class type (e.g. rogue, warrior, etc) (✓ Sandbox Passed)#3
sweep-ai-deprecated[bot] wants to merge 2 commits intomasterfrom
sweep/add_a_new_feature_to_my_dungeons_and_dra

Conversation

@sweep-ai-deprecated
Copy link
Copy Markdown

PR Feedback (click)

  • 👍 Sweep Did Well
  • 👎 Sweep Needs Improvement

Description

This pull request adds a new feature to the Dungeons and Dragons character generator. It modifies the 'wtf.js' file to display an icon for each class type (e.g. rogue, warrior, etc). The SVG icons are read from the 'assets/svg' directory and added to the output of the generator.

Summary

  • Modified 'wtf.js' file to import the 'fs' module and read SVG icons from the 'assets/svg' directory.
  • Updated the 'generate' function to include the SVG icon in the output.
  • Replaced the '@ICON' placeholder in the generated idea with the corresponding icon path.
  • Updated the output HTML to include the SVG icon and alt text.

Fixes #1.


🎉 Latest improvements to Sweep:

  • We just released a dashboard to track Sweep's progress on your issue in real-time, showing every stage of the process – from search to planning and coding.
  • Sweep uses OpenAI's latest Assistant API to plan code changes and modify code! This is 3x faster and significantly more reliable as it allows Sweep to edit code and validate the changes in tight iterations, the same way as a human would.
  • Try using the GitHub issues extension to create Sweep issues directly from your editor! GitHub Issues and Pull Requests.

💡 To get Sweep to edit this pull request, you can:

  • Comment below, and Sweep can edit the entire PR
  • Comment on a file, Sweep will only modify the commented file
  • Edit the original issue to get Sweep to recreate the PR from scratch

@sweep-ai-deprecated
Copy link
Copy Markdown
Author

Rollback Files For Sweep

  • Rollback changes to scripts/wtf.js
  • Rollback changes to assets/svg

@sweep-ai-deprecated
Copy link
Copy Markdown
Author

Apply Sweep Rules to your PR?

  • Apply: All new business logic should have corresponding unit tests.
  • Apply: Refactor large functions to be more modular.
  • Apply: Add docstrings to all functions and file headers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sweep: Add a new feature to my Dungeons and Dragons character generator that displays an icon for each class type (e.g. rogue, warrior, etc)

0 participants